package strategy.spring;

import org.springframework.boot.SpringApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan("strategy.spring")
public class StrategyClient {
    /**
     * 通常页面和DB会记录 名字是XXX的状态。  这里用这个状态做不同的事情
     * @param args
     */
    public static void main(String[] args)  {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(StrategyClient.class);
        StrategyContext bean = applicationContext.getBean(StrategyContext.class);
        Object a1 = bean.selectAddressVo(DeliveryStateConstant.ADDRESS, "a1");
        System.out.println(a1);
    }

}
